home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_33 / PlaceObject2_448_314 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1.2 KB  |  57 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.car.dead)
  3.    {
  4.       _visible = false;
  5.       return undefined;
  6.    }
  7.    if(!_root.car.onfloor)
  8.    {
  9.       if(Key.isDown(37))
  10.       {
  11.          _visible = true;
  12.          if(!sound)
  13.          {
  14.             if(_root.sound)
  15.             {
  16.                _root.steamSide.start(0,99999);
  17.                sound = true;
  18.             }
  19.          }
  20.       }
  21.    }
  22.    if(_root.gravityType == "normal")
  23.    {
  24.       if(!Key.isDown(37) or _root.car.onfloor or _root.fake._rotation < -20 or _root.fake._rotation > 20)
  25.       {
  26.          _visible = false;
  27.          if(!_root.f1.sound)
  28.          {
  29.             _root.steamSide.stop();
  30.             sound = false;
  31.          }
  32.       }
  33.    }
  34.    if(_root.gravityType == "reverse")
  35.    {
  36.       if(!Key.isDown(37))
  37.       {
  38.          _visible = false;
  39.          sound = false;
  40.          if(!_root.f1.sound)
  41.          {
  42.             _root.steamSide.stop();
  43.             sound = false;
  44.          }
  45.       }
  46.    }
  47.    _X = _root.fake._x + 30;
  48.    if(_root.gravityType == "normal")
  49.    {
  50.       _Y = _root.fake._y - 14;
  51.    }
  52.    if(_root.gravityType == "reverse")
  53.    {
  54.       _Y = _root.fake._y + 10;
  55.    }
  56. }
  57.